package com.iterator.controller.wechat.dhy;

import com.iterator.bean.web.pojo.BaseRespVo;
import com.iterator.bean.wechat.dhy.IndexVO;
import com.iterator.service.wechat.dhy.WxGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: DHY
 * @Date: 2021/1/12 18:40
 * @Description: wx  主页面
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {
    @Autowired
    WxGoodsService wxGoodsService;

    /**
     * 主页面显示
     * @return
     */
    @GetMapping("index")
    public BaseRespVo index() {
        IndexVO indexVO =wxGoodsService.showIndex();
        return BaseRespVo.ok(indexVO);
    }
}
